home *** CD-ROM | disk | FTP | other *** search
/ Amiga Magazin: Amiga-CD 1996 March / Amiga-CD 1996 #3.iso / amiga_technologies / fd / iffparse_lib.fd < prev    next >
Text File  |  1996-01-19  |  2KB  |  78 lines

  1. ##base _IFFParseBase
  2. ##bias 30
  3. ##public
  4. *--- functions in V36 or higher (Release 2.0) ---
  5. *
  6. * Basic functions
  7. *
  8. AllocIFF()()
  9. OpenIFF(iff,rwMode)(a0,d0)
  10. ParseIFF(iff,control)(a0,d0)
  11. CloseIFF(iff)(a0)
  12. FreeIFF(iff)(a0)
  13. *
  14. * Read/Write functions
  15. *
  16. ReadChunkBytes(iff,buf,numBytes)(a0/a1,d0)
  17. WriteChunkBytes(iff,buf,numBytes)(a0/a1,d0)
  18. ReadChunkRecords(iff,buf,bytesPerRecord,numRecords)(a0/a1,d0/d1)
  19. WriteChunkRecords(iff,buf,bytesPerRecord,numRecords)(a0/a1,d0/d1)
  20. *
  21. * Context entry/exit
  22. *
  23. PushChunk(iff,type,id,size)(a0,d0/d1/d2)
  24. PopChunk(iff)(a0)
  25. *--- (1 function slot reserved here) ---
  26. ##bias 102
  27. *
  28. * Low-level handler installation
  29. *
  30. EntryHandler(iff,type,id,position,handler,object)(a0,d0/d1/d2/a1/a2)
  31. ExitHandler(iff,type,id,position,handler,object)(a0,d0/d1/d2/a1/a2)
  32. *
  33. * Built-in chunk/property handlers
  34. *
  35. PropChunk(iff,type,id)(a0,d0/d1)
  36. PropChunks(iff,propArray,numPairs)(a0/a1,d0)
  37. StopChunk(iff,type,id)(a0,d0/d1)
  38. StopChunks(iff,propArray,numPairs)(a0/a1,d0)
  39. CollectionChunk(iff,type,id)(a0,d0/d1)
  40. CollectionChunks(iff,propArray,numPairs)(a0/a1,d0)
  41. StopOnExit(iff,type,id)(a0,d0/d1)
  42. *
  43. * Context utilities
  44. *
  45. FindProp(iff,type,id)(a0,d0/d1)
  46. FindCollection(iff,type,id)(a0,d0/d1)
  47. FindPropContext(iff)(a0)
  48. CurrentChunk(iff)(a0)
  49. ParentChunk(contextNode)(a0)
  50. *
  51. * LocalContextItem support functions
  52. *
  53. AllocLocalItem(type,id,ident,dataSize)(d0/d1/d2/d3)
  54. LocalItemData(localItem)(a0)
  55. SetLocalItemPurge(localItem,purgeHook)(a0/a1)
  56. FreeLocalItem(localItem)(a0)
  57. FindLocalItem(iff,type,id,ident)(a0,d0/d1/d2)
  58. StoreLocalItem(iff,localItem,position)(a0/a1,d0)
  59. StoreItemInContext(iff,localItem,contextNode)(a0/a1/a2)
  60. *
  61. * IFFHandle initialization
  62. *
  63. InitIFF(iff,flags,streamHook)(a0,d0/a1)
  64. InitIFFasDOS(iff)(a0)
  65. InitIFFasClip(iff)(a0)
  66. *
  67. * Internal clipboard support
  68. *
  69. OpenClipboard(unitNumber)(d0)
  70. CloseClipboard(clipHandle)(a0)
  71. *
  72. * Miscellaneous
  73. *
  74. GoodID(id)(d0)
  75. GoodType(type)(d0)
  76. IDtoStr(id,buf)(d0/a0)
  77. ##end
  78.